package com.zy.entity;

public class Paging {
	private int numCount;
	private int pageSize=3;
	private int pageCount;
	private int currentPage=1;
	private int limitNum;
	public int getNumCount() {
		return numCount;
	}
	public void setNumCount(int numCount) {
		this.numCount = numCount;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageCount() {
		if(numCount%pageSize==0){
			pageCount = numCount/pageSize;
		}else{
			pageCount = numCount/pageSize+1;
		}
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getLimitNum() {
		limitNum=(currentPage-1)*pageSize;
		return limitNum;
	}
	public void setLimitNum(int limitNum) {
		this.limitNum = limitNum;
	}
}
